<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // function Star(uname,age,gender) {
        //     this.uname = uname
        //     this.age = age
        //     this.gender = gender
        // }
        // Star.prototype.sing = function () {
        //     console.log('唱歌');
            
        // }
        // const hcy = new Star('华晨宇', 30,'男')
        // console.log(Star.prototype);
        // console.log(hcy.__proto__);
        // hcy.sing()
        // console.log(Star.prototype.constructor);// Star
        // console.log(hcy.__proto__.constructor);// Star
        // console.log(hcy.__proto__ === Star.prototype);//true
        // console.log(hcy.__proto__.__proto__);// Object.prototype
        // console.log(hcy.__proto__.__proto__ === Object.prototype)
        // console.log(hcy.__proto__.__proto__.__proto__ );// null
        // console.log(hcy.__proto__.__proto__.constructor === Object);//Object
        
        const arr  = new Array(1,2,3)
        console.dir(Array)
        const arr1 = [1,2,3]
        console.dir(arr1)
    </script>
</body>
</html>